package cn.calm.swing.osgi.api;

import javax.swing.JMenuItem;

public interface MenuService {
	public String MENU_TREE = "menu.tree";

	/**
	 * 当前菜单
	 * 
	 * @return
	 */
	public JMenuItem getMenu();

	/**
	 * 获得菜单所在位置
	 * 
	 * @return
	 */
	public int getIndex();

	/**
	 * 设置父Service
	 * 
	 * @param parent
	 */
	public void setParent(MenuService parent);

	/**
	 * 获得父Service
	 * 
	 * @return
	 */
	public MenuService getParent();
}
